<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css"></style>
</head>
<body>
    <h1>History</h1>
    <hr>

    <button onclick="history.back()">上一步(页)</button>
    <button onclick="history.forward()">下一步(页)</button>

    
    <button onclick="history.go(-1)">上一步(页)</button>
    <button onclick="history.go(-2)">上两步(页)</button>


    <script>
    
        // console.dir(window.history);
        console.dir(history.length);


    </script>



</body>
</html>



